/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Model;

import java.awt.Image;
import java.net.URL;
import javax.swing.ImageIcon;

/**
 *
 * @author Bram
 */
public class BordObject {
    
    private Image image;
    private String type;

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
        URL loc = null;
        switch(type){
            case "muur":
                loc = this.getClass().getResource("/resources/wall.png");
            break;
            case "speler":
                loc = this.getClass().getResource("/resources/player.png");
            break;
            case "krat":
                loc = this.getClass().getResource("/resources/crate.png");
            break;
        }
        ImageIcon iia = new ImageIcon(loc);
        image = iia.getImage();
    }

    public BordObject() {
    }

    public Image getImage() {
        return image;
    }

    public void setImage(Image image) {
        this.image = image;
    }
    
    
}
